Mattermost-server: Increasing message limit?

Created on 21 Apr 2016  路  20Comments  路  Source: mattermost/mattermost-server

Seems the platform has a hardcoded limit of 4000 characters per message. Is there any reasoning for this? Can it be bumped up or made configurable? We have legitimate use cases where individual messages can be larger than this limit.

Most helpful comment

I am also getting a lot of complaints of my users. Our developers use Mattermost to discuss problems, and they frequently tell me they are not able to post stacktraces due to the message size limit.

All 20 comments

@hany - That might be possible, how often are your users hitting the limit on message length? Can you explain a little more about the use case?

@lfbrock our hubot sends us some alerts that are longer than 4000 characters. Same thing for hubot help command. It doesn't work when you have few hubot scripts installed.

We actually just switched over to Mattermost yesterday, and have run up against the limit almost hourly. Our monitoring system sends us a lot of diagnostic information with each alert, and this regularly hits the limit.

Thanks for the feedback, do you have an estimate of what max message length you would need to not hit the limit regularly?

@lfbrock likely double or triple the value (8000 or 12000).

@lfbrock if we wanted to temporarily compile a custom Mattermost build with a new max message size (to address our immediate concern), where should we look to make these changes?

We have a couple hubot scripts hitting the limit. We circumvent it by posting large messages to anonymous GitHub gists. It would be ideal if the character limit was configurable via the System Console.

Would someone be willing to open a feature request on this?

We discussed it, and currently 4000 characters is the maximum limit for the type of database column we're using. If we were to change it to something that can support longer messages, there was some concern there could be a performance hit on the application.

Because of this, we don't plan on making any changes at this point in time, but if more people start hitting this issue it may be addressed in future.

The problem with the way it's handled currently is clients silently fail. You don't even realize that messages are not coming through unless you check the logs.

Is there a way to chunk responses up perhaps to address the performance concerns?

Hi @lfbrock
Did you try text type instead ?

Postgres documentations says, that:

"there is no performance difference among these three types"

https://www.postgresql.org/docs/9.2/static/datatype-character.html


We had this problem when we tried to send some stack trace...

That may be true for Postgres, but for other database types Text vs Varchar may have performance differences.

Please increase the limit more than 4000 characters in future versions.
When is it possible to expect ?

4000 chars limit is definitely not enough when sending formatted charts with images and other items using markdowns. My table takes about half a page and is already at the limit.

Man this is so annoying! how hard could it possibly be...

I am also getting a lot of complaints of my users. Our developers use Mattermost to discuss problems, and they frequently tell me they are not able to post stacktraces due to the message size limit.

@rascalcmos @dkpeall, @fibbs appreciate your feedback,

We have a ticket here discussing the options: https://mattermost.atlassian.net/browse/PLT-5929

Does the ability to automatically split text over 4K into multiple messages in 3.7.1 help, or do you need other options mentioned in the ticket?

PS: GitHub issues is for bug reports, this is more a feature proposal and typically would go into the feature proposal forum, then into Jira, where it is now.

Also, @rascalcmos @dkpeall, @fibbs, if what's there doesn't meet yet meet all your needs, would any of you, or people on your team, be interested in helping implement any of the solutions mentioned?

Would be a great help for the community, and you'd influence its design.

The link mentioned above says the automatic splitting of longer messages into several posts is included in 3.7.1. I am on 3.7.2 but it's not splitting messages. Am I missing something or has it been pushed forward? How can I get access to the pre-release link also mentioned in the above mentioned link of the ticket?

To clarify, the linked issue is for INTEGRATIONS, not for people.

Was this page helpful?
0 / 5 - 0 ratings