[ejabberd] pubsub_item.DAT getting big

Stephan Maihöfer sma at turtle-entertainment.de
Thu Oct 2 18:23:59 MSD 2008


hi,
 
we only use one user to publish to whatever node in
the whole pubsub-system. i don't quite understand
wether this is a good or bad thing in this situation,
because you say:
 
"I wasn't able to reproduce, because I was the only one publishing on the node. 
I haven't tested that theory yet though."
 
this sounds as if the "bug" should not occur in this case...
 
greetings,
stephan
 


________________________________

	Von: ejabberd-bounces at jabber.ru [mailto:ejabberd-bounces at jabber.ru] Im Auftrag von Eric Cestari
	Gesendet: Donnerstag, 2. Oktober 2008 15:01
	An: ejabberd at jabber.ru
	Betreff: Re: [ejabberd] pubsub_item.DAT getting big
	
	
	I think I found something. 

	Do you have several users publishing on this node ?

	Because from what I read in node_default:publish_items, the remove_extra_items is called with the Items array taken from the pubsub_state mnesia table.
	This table holds the relation between a user and a node, and tracks items published by a single user on a single node :

	-record(pubsub_state, {stateid,
	      items = [], % <--- that one.
	      affiliation = none,
	      subscription = none
	}).

	I wasn't able to reproduce, because I was the only one publishing on the node.
	I haven't tested that theory yet though.

	Le 2 oct. 08 à 14:41, Stephan Maihöfer a écrit :


		hi,
		 
		that is exactly what i am getting:
		 
		[{pubsub_node,{"pubsub.example.com",
		               ["www.esl.eu","de","cs","gather","3509130"]},
		              {"pubsub.example.com",["www.esl.eu","de","cs","gather"]},
		              "flat",
		              [{"user","example.com",[]}],
		              [{presence_based_delivery,true},
		               {send_last_published_item,never},
		               {max_payload_size,60000},
		               {publish_model,publishers},
		               {roster_groups_allowed,[]},
		               {access_model,open},
		               {subscribe,true},
		               {max_items,2},
		               {title,["/www.esl.eu/de/cs/gather/3509130 title"]},
		               {persist_items,false},
		               {notify_retract,false},
		               {notify_delete,false},
		               {notify_config,false},
		               {deliver_notifications,true},
		               {deliver_payloads,true},
		               {node_type,collection}]}]
		
		still, i currently have 7 items on that node.
		 
		greetings,
		stephan
		
		 

________________________________

			Von: ejabberd-bounces at jabber.ru [mailto:ejabberd-bounces at jabber.ru] Im Auftrag von Eric Cestari
			Gesendet: Donnerstag, 2. Oktober 2008 14:35
			An: ejabberd at jabber.ru
			Betreff: Re: [ejabberd] pubsub_item.DAT getting big
			
			



					Also make sure that the max_items value stored in the 
					

					pubsub_nodes mnesia table are also set to the value you want 
					

					and not set to unlimited.
					


				how can i check that?
				
				

			ejabberdctl debug

			and mnesia:dirty_read({pubsub_node, {"pubsub.example.com", ["www.esl.eu","de","cs","gather","3509130" <http://www.esl.eu/de/cs/gather/3509130> ]}}).

			The output should be something like that :
			[{pubsub_node,{"pubsub.example.com",["www.esl.eu","de","cs","gather","3509130" <http://www.esl.eu/de/cs/gather/3509130> ]},
			              {"pubsub.example.com",[]},
			              "default",
			              [{[],"pubsub.example.com",[]}],
			              [{node_type,default},
			               {deliver_payloads,true},
			               {notify_config,false},
			               {notify_delete,false},
			               {notify_retract,true},
			               {persist_items,true},
			               {max_items,10},
			               {subscribe,true},
			               {access_model,open},
			               {roster_groups_allowed,[]},
			               {publish_model,publishers},
			               {max_payload_size,60000},
			               {send_last_published_item,on_sub_and_presence},
			               {deliver_notifications,true},
			               {presence_based_delivery,false}]}]

			Cheers,
			Eric
			


		_______________________________________________
		ejabberd mailing list
		ejabberd at jabber.ru
		http://lists.jabber.ru/mailman/listinfo/ejabberd
		


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20081002/47616e53/attachment-0001.htm>


More information about the ejabberd mailing list